<?php
namespace Admin\Model;
use Think\Model;
class InfoModel extends Model{
    protected $_validate = array(
        array('title','require','资讯标题必须！'),
        array('column_id','require','所属栏目未选择！'),
    );
    protected $_auto = array (
        array('ctime', 'time', 1, 'function'), // 对ctime字段在新增时写入当前时间戳
    );
}
